<template>
    <div style="width: 350px; text-align: center;">
        <van-tabs v-model:active="active" swipeable type="card">
        <van-tab title="我是标签1的内容">内容1</van-tab>
        <van-tab title="标签2">内容2</van-tab>
        <van-tab title="我是标签3的内容">内容3</van-tab>
        <van-tab title="我是标签4的内容">内容4</van-tab>
        </van-tabs>
    </div>
</template>

<script setup>
import { ref } from 'vue'
const active = ref(0)
</script>